package homework;

public class SortEven {

	int[] a={83,4,60,85,23,12,5,16,75,18,101};
	
	void sortEvenMeth()
	{
		
	for(int i=0;i<a.length;i++)	
	{
		
	for(int j=0;j<a.length-1;j++)
	{
		 if(a[j]%2==1)
		 {
			 int temp=a[j];
			 a[j]=a[j+1];
			 a[j+1]=temp;
		 }
	}
	}
	
	for(int j=0;j<a.length;j++)
	{
	System.out.println(a[j]);
   }
     }
}